<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AddPlanBasicInfo</title>
<link rel="stylesheet" type="text/css" href="../css/blueprint/screen.css" media="screen, projection"/>
<script type="text/javascript" src="../script/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {

    	loadTempSavedData();

        $("#tempSave").click(function() {
            $.getJSON("AddPlanTempSaveTDPHLX.action", 
                {
                    "tdfkfaBasicXmqntdphlx.yphwsmj": $("#yphwsmj").val(),
                    "tdfkfaBasicXmqntdphlx.nphwsmj": $("#nphwsmj").val(),
                    "tdfkfaBasicXmqntdphlx.yphtxmj": $("#yphtxmj").val(),
                    "tdfkfaBasicXmqntdphlx.nphtxmj": $("#nphtxmj").val(),
                    "tdfkfaBasicXmqntdphlx.yphyzmj": $("#yphyzmj").val(),
                    "tdfkfaBasicXmqntdphlx.nphyzmj": $("#nphyzmj").val(),
                    "tdfkfaBasicXmqntdphlx.yphwrmj": $("#yphwrmj").val(),
                    "tdfkfaBasicXmqntdphlx.nphwrmj": $("#nphwrmj").val()
                },
                function(data) {
                    if (data.tempSaveStatus == "success") {
                        $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("success");
                    } else if (data.tempSaveStatus == "failed") {
                        $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("failed");
                    }
                }
            );
        });
    });
    function loadTempSavedData() {
        $.getJSON("AddPlanTempLoadTDPHLX.action", 
            function(data) {
                if (data.tdfkfaBasicXmqntdphlx != null) {
                	$("#yphwsmj").val(data.tdfkfaBasicXmqntdphlx.yphwsmj);
                    $("#nphwsmj").val(data.tdfkfaBasicXmqntdphlx.nphwsmj);
                    $("#yphtxmj").val(data.tdfkfaBasicXmqntdphlx.yphtxmj);
                    $("#nphtxmj").val(data.tdfkfaBasicXmqntdphlx.nphtxmj);
                    $("#yphyzmj").val(data.tdfkfaBasicXmqntdphlx.yphyzmj);
                    $("#nphyzmj").val(data.tdfkfaBasicXmqntdphlx.nphyzmj);
                    $("#yphwrmj").val(data.tdfkfaBasicXmqntdphlx.yphwrmj);
                    $("#nphwrmj").val(data.tdfkfaBasicXmqntdphlx.nphwrmj);
                }

                watchDataEdited();
            }
        );
    }
    function watchDataEdited() {
        $("input[type='text'],input[type='radio'],input[type='checkbox']").change(function() {
            $(parent.LeftFrame.document).contents().find("#dataEditWatcher").val("changed");
            $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("");
        });
    }
</script>
<style type="text/css">
<!--
.style1 {
	font-size: 36px;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
    <tr>
        <td width="20%" colspan="2"><div align="center" class="style1">土地破坏类型/面积</div>
        <hr></hr></td>
    </tr>
    <tr>
        <td align="right" style="width: 30%; height: 25px; color: Red;">请选择面积单位：</td>
        <td style="height: 25px"><input type="radio" name="damageSQUnit" id="idDamageMU" value="mu" /><label for="idDamageMU">亩</label><input type="radio" name="damageSQUnit" id="idDamageHA" value="ha" /><label for="idDamageHA">公顷</label><input type="radio" name="damageSQUnit" id="idDamageSQM" value="sq.m." /><label for="idDamageSQM">平方米</label></td>
    </tr>
    <tr>
        <td align="right" style="width: 30%; height: 25px;">已破坏挖损面积：</td>
        <td style="height: 25px"><input type="text" id="yphwsmj"/></td>
    </tr>
    <tr>
        <td align="right" style="width: 30%; height: 25px;">拟破坏挖损面积：</td>
        <td style="height: 25px"><input type="text" id="nphwsmj"/></td>
    </tr>
    <tr>
        <td height="25" align="right" style="width: 30%">已破坏塌陷面积：</td>
        <td height="25"><input type="text" id="yphtxmj"/></td>
    </tr>
    <tr>
        <td height="25" align="right" style="width: 30%">拟破坏塌陷面积：</td>
        <td height="25"><input type="text" id="nphtxmj"/></td>
    </tr>
    <tr>
        <td height="25" align="right" style="width: 30%">已破坏压占面积：</td>
        <td height="25"><input type="text" id="yphyzmj"/></td>
    </tr>
    <tr>
        <td height="25" align="right" style="width: 30%">拟破坏压占面积：</td>
        <td height="25"><input type="text" id="nphyzmj"/></td>
    </tr>
    <tr>
        <td align="right" style="width: 30%; height: 25px;">已破坏污染面积：</td>
        <td style="height: 25px"><input type="text" id="yphwrmj"/></td>
    </tr>
    <tr>
        <td height="25" align="right" style="width: 30%">拟破坏污染面积：</td>
        <td height="25"><input type="text" id="nphwrmj"/></td>
    </tr>
    <tr>
        <td width="20%" height="25"><div align="right"><input type="button" id="tempSave" value="暂存" /></div></td>
        <td width="30%">&nbsp;</td>
    </tr>
</table>
</body>
</html>